package com.klxedu.ms.gateway.event;

import javax.servlet.http.HttpServletRequest;

public class LoginEvent extends Event {

	public static final String EVENT_TYPE_LOGIN = "LOGIN";
	public static final String EVENT_TYPE_LOGOUT = "LOGOUT";
	public static final String EVENT_TYPE_TIMEOUT = "TIMEOUT";

	public LoginEvent(HttpServletRequest request, String origin) {
		super(request, origin, "login");
	}

	private String eventType;

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	@Override
	public String toString() {
		return "LoginEvent [eventType=" + eventType + ", toString()=" + super.toString() + "]";
	}

}
